package com.ecoolex.chinadutyfree.retailer.core.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ecoolex.chinadutyfree.retailer.core.mapper.CouponMapper;
import com.ecoolex.chinadutyfree.retailer.entity.Coupon;
import com.ecoolex.chinadutyfree.retailer.pojo.QueryCouponDTO;
import com.ecoolex.framework.common.pojo.Page;

public interface CouponDAO extends CouponMapper {
	
	long countByName(@Param("query") QueryCouponDTO query);
	
	List<Coupon> queryByName(@Param("query") QueryCouponDTO query,@Param("sorts") String sorts,@Param("page") Page page);
}